<!DOCTYPE html>
<html lang="zh">
<head>
	<meta charset="UTF-8" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0" />
	<meta http-equiv="X-UA-Compatible" content="ie=edge" />
	<script src="js/mui.min.js"></script>
	<script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
	<link href="css/mui.min.css" rel="stylesheet"/>
	<link rel="stylesheet/less" type="text/css" href="./css/iconfonts.less"/>
	<link rel="stylesheet/less" type="text/css" href="./css/public_css.less"/>
	<script src="./js/app.js" type="text/javascript" charset="utf-8"></script>
	<script src="https://cdn.bootcss.com/vue/2.4.4/vue.min.js"></script>
	<script type="text/javascript" charset="utf-8">
		mui.init({
			swipeBack:true //启用右滑关闭功能
		});
	</script>
</head>
<body>
	<div id="app">
		<header class="mui-bar mui-bar-nav" id="edit">
			<a href="javascript:window.close()" class="mui-icon mui-icon mui-icon-back mui-pull-left" style="color:#8a8a8a"></a>
			<h1 class="mui-title">李云迪</h1>
		</header>
		<div class="mui-content msg_box">
		</div>
		<div class="msg_push">
			<input class="msg_push_textarea" v-model="msg_push" placeholder="请输入信息" />
			<input type="button" value="发送" v-on:click="push" />
		</div>
	</div>
</body>
<script src="https://cdn.bootcss.com/less.js/3.0.0-pre.4/less.min.js"></script>
<script type="text/javascript">
	var app = new Vue({
		el: "#app",
		data: {
			msg_push:""
		},
		methods: {
			push:function(){
				var msg = this.msg_push;
				//post之后
				this.msg_push="";
				console.log(this.p_time())
				return false;
				$.post("",{},function(){})
			},
			p_time:function(){
				var myDate = new Date();
				var d_m = myDate.getMonth()+1;       //获取当前月份(0-11,0代表1月)
				var d_d = myDate.getDate();        //获取当前日(1-31
				var d_H = myDate.getHours();       //获取当前小时数(0-23)
				var d_ms = myDate.getMinutes();     //获取当前分钟数(0-59)
				var d_s = myDate.getSeconds();     //获取当前秒数(0-59)
				return	d_m+"-"+d_d+" "+d_H+":"+d_ms+":"+d_s

			}
		}
	})
</script>
</html>